﻿@model IEnumerable<WmWebSystem.Models.Project>

@{
    ViewBag.Title = "Search";
    Layout = "~/Views/Shared/_Layout_manage.cshtml";
}


    <div class="contentcontainer">
        <div class="headings">
            <h2>项目查询</h2>
        </div>
        <div class="contentbox">
            @using (Html.BeginForm("Search", "Project", FormMethod.Post))
            {
                <table width="100%" border="0" id="MyTable" cellpadding="0" cellspacing="0">
                <tbody>
                <tr>
                    <th>项目名称</th>
                    <td>
                        <input type="text" id="p_title" name="s_title"/>
                    </td>
                    <th>项目内容</th>
                    <td>
                        <input type="text" id="p_cont" name="s_cont"/>
                    </td>
                </tr>
                <tr>
                    <th>起始时间</th>
                    <td>
                        <input type="text" id="s_time" name="s_time"/>
                    </td>
                    <th>结束时间</th>
                    <td>
                        <input type="text" id="e_time" name="e_time" />
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td>
                        <input type="submit" value=" 查询 >> " class="btn" />
                    </td>
                </tr>  
                </tbody>
                </table>
            }
            <div style="clear: both;"></div>
        </div>
    </div>
    <div class="contentcontainer">
        <div class="headings altheading">
            <h2>项目列表</h2>
        </div>
        <div class="contentbox">
            <table width="100%">
                <thead>
                    <tr>
                        <th>编号</th>
                        <th>项目名称</th>
                        <th>发布者</th>
                        <th>状态</th>
                        <th>集资金额</th>
                        <th>已筹金额</th>
                        <th>提交时间</th>
                        <th>管理</th>
                        <th><input name="" type="checkbox" value="" id="checkboxall" /></th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (WmWebSystem.Models.Project item in Model)
                    {
                    <tr class="alt">
                        <td>
                            @Html.DisplayFor(modelItem => item.ProjectNo)
                        </td>
                        <td>
                            @Html.DisplayFor(modelItem => item.ProjectName)
                        </td>
                        <td>
                            @Html.DisplayFor(modelItem => item.Author)
                        </td>
                        <td>
                            @Html.DisplayFor(modelItem => item.Status)
                        </td>
                        <td>
                            @Html.DisplayFor(modelItem => item.TargetValue)
                        </td>
                        <td>
                            @Html.DisplayFor(modelItem => item.CurrentValue)
                        </td>
                        <td>
                            @Html.DisplayFor(modelItem => item.AddTime)
                        </td>
                        <td>
                            <a href="@Url.Action("Edit", "Project", new { id = item.ProjectId })" title=""><img src="@Url.Content("~/Content/zone/img/icons/icon_edit.png")" alt="Edit" /></a>
                            <a href="@Url.Action("ProjectView", "Project", new { No = item.ProjectNo })" title=""><img src="@Url.Content("~/Content/zone/img/icons/icon_approve.png")" alt="Details" /></a>
                            <a href="@Url.Action("Delete", "Project", new { id = item.ProjectId })" title=""><img src="@Url.Content("~/Content/zone/img/icons/icon_delete.png")" alt="Delete" /></a>
                        </td>
                        <td><input type="checkbox" value="@item.ProjectId" name="checkall" /></td>
                    </tr>
                    }
                </tbody>
            </table>
            <div style="clear: both;"></div>
        </div>     
    </div>